//
//  KitchenInfo.m
//  Kitchen
//
//  Created by   on 15/8/28.
//  Copyright (c) 2015年 雍玉虎. All rights reserved.
//

#import "KitchenInfo.h"

@implementation KitchenInfo


+(instancetype)KitchenInfoSetEventsValuesFOrKeyWithDictionary:(NSDictionary *)dicionary{
    return  [[KitchenInfo alloc]initSetEventsValuesFOrKeyWithDictionary:dicionary];
}

- (instancetype)initSetEventsValuesFOrKeyWithDictionary:(NSDictionary *)dicionary {
    self = [super init];
    if ( self) {
        self.dishes = [NSMutableDictionary new];
        [self setValuesForKeysWithDictionary:dicionary];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}

@end
